$OpenBSD: patch-modules_demux_mkv_mkv_hpp,v 1.5 2015/05/24 07:16:31 ajacoutot Exp $
--- modules/demux/mkv/mkv.hpp.orig	Sat May 23 22:38:11 2015
+++ modules/demux/mkv/mkv.hpp	Sat May 23 22:38:55 2015
@@ -119,7 +119,7 @@ enum
 
 #define MKVD_TIMECODESCALE 1000000
 
-#define MKV_IS_ID( el, C ) ( el != NULL && typeid( *el ) == typeid( C ) )
+#define MKV_IS_ID( el, C ) ( EbmlId( (*el) ) == C::ClassInfos.GlobalId )
 
 
 using namespace LIBMATROSKA_NAMESPACE;
